class Person {
    String name;
    int age;

    void say() {
        System.out.println("Hello, my name is " + name + " and I am " + age + " years old.");
    }

    public static void main(String[] args) {

    }
}

class Main1 {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
        Person obj = new Person();
        obj.name = "John";
        obj.age = 20;
        obj.say();
    }
}

class Cat extends Animal {
    @Override
    void eat() {
        System.out.println("Cat is eating");
    }
}